#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#include <windows.h>
#include <tchar.h>
#include <Eigen/Eigen>
#include <gdiplus.h>
#pragma comment(lib, "gdiplus.lib")

#ifndef MIN
#  define MIN(a,b)  ((a) > (b) ? (b) : (a))
#endif

#ifndef MAX
#  define MAX(a,b)  ((a) < (b) ? (b) : (a))
#endif

constexpr double MY_PI = 3.1415926;
struct Bounds2d
{
public:
	Bounds2d()
	{
		nMinX = 0;
		nMinY = 0;
		nMaxX = 0;
		nMaxY = 0;
	}
	int nMinX = 0;
	int nMaxX = 0;
	int nMinY = 0;
	int nMaxY = 0;
};